﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MSBTC.Model;
using MSBTC.CrystalReport;

namespace MSBTC.ReportViewer
{
    public partial class ClientRptForm : Form
    {
        //PMSContext dbcontext = new PMSContext();

        public ClientRptForm()
        {
            InitializeComponent();
        }

        private void ClientRptForm_Load(object sender, EventArgs e)
        {
            try
            {
                ClientRpt rport = new ClientRpt();

                clientrport.ReportSource = rport;
                clientrport.Refresh();
            }
            catch
            {
                MessageBox.Show("Nothing to Print", "Print", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
        }
    }
}
